Skip to content

Do not redirect ajax requests on auth success#104

Closed
samsonradu wants to merge 4 commits intoecphp:masterfrom
samsonradu:do-not-redirect-ajax-requests-on-success
Closed

Do not redirect ajax requests on auth success#104
samsonradu wants to merge 4 commits intoecphp:masterfrom
samsonradu:do-not-redirect-ajax-requests-on-success

Conversation

@samsonradu
Copy link
Contributor

Redirecting ajax requests on successful authentication triggers a ticket re-validation, which fails because the ticket is already consumed.

  • [x]
  • [ ]
  • [ ]

Follows #. Related to #. Fixes #.

}

public function onAuthenticationSuccess(Request $request, TokenInterface $token, string $firewallName): Response
public function onAuthenticationSuccess(Request $request, TokenInterface $token, string $firewallName): ?Response
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@samsonradu samsonradu closed this Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants